package com.cj.bigfileupload.controller.response;


import com.cj.bigfileupload.common.enums.FileUploadStatusEnum;

/**
 * ClassName: CheckMD5Res <br/>
 * Function: 文件md5校验响应 <br/>
 * date: 2018/05/08 15:33 <br/>
 *
 * @author chenj
 * @version 1.0.0
 * @since JDK 1.8
 */
public class CheckMD5Res {

    private int status;
    private String message;
    private Object data;

    public CheckMD5Res(FileUploadStatusEnum statusEnum) {
        this.status = statusEnum.getStatus();
        this.message = statusEnum.getMessage();
    }

    public CheckMD5Res(FileUploadStatusEnum statusEnum, Object data) {
        this.status = statusEnum.getStatus();
        this.message = statusEnum.getMessage();
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
